this._banner = null;
this._bannerClickedId = 0;
- this._closeButton = Util.makeCloseButton();
- this._closeButton.hide();
- this._closeButton.connect('clicked', Lang.bind(this, this._closeNotification));
- this.actor.add_actor(this._closeButton);
-
this._userActiveWhileNotificationShown = false;
this.idleMonitor = Meta.IdleMonitor.get_core();
Main.layoutManager.trayBox.add_actor(this.actor);
Main.layoutManager.trackChrome(this.actor, { affectsInputRegion: true });
- Main.layoutManager.trackChrome(this._closeButton);
global.screen.connect('in-fullscreen-changed', Lang.bind(this, this._updateState));
this._updateState();
},
- _closeNotification: function() {
- if (this._notificationState == State.SHOWN) {
- this._closeButton.hide();
- this._notification.emit('done-displaying');
- this._notification.destroy();
- }
- },
-
get queueCount() {
return this._notificationQueue.length;
},
if (notification.isTransient)
notification.destroy(NotificationDestroyedReason.EXPIRED);
- this._closeButton.hide();
this._pointerInNotification = false;
this._notificationRemoved = false;